/*
 * TITLE:ResponseBoardAnswer
 * AUTHOR:Manori Thakur
 * PURPOSE: Processes the response to verify login
 */
package clientresponse;

import java.io.IOException;

import android.util.Log;

import clientcore.AndroidMain;

public class ResponseLogin extends ResponseFromServer {
	private static final String TAG = ResponseLogin.class.getSimpleName();
    private short status = -1,gender;
    private int uid,length;
    private String username,lastname;

    @Override
    public short process() {
        status = super.readShort(inFromServer);          
        if(status == 0) {            
            uid = super.readInt(inFromServer);
            username = super.readString(inFromServer);           
            lastname = super.readString(inFromServer);
            gender = (short)super.readShort(inFromServer);
        }
        return status;
    }

}
